package com.example.demo.testOne;

import cn.hutool.core.util.StrUtil;
import com.example.demo.pojo.vo.ResumeVO;

import java.util.ArrayList;
import java.util.List;

/**
 * @description 测试
 *
 * @author lilinchun
 * @date 2024/01/12
 */
public class demo23 {

    public static void main(String[] args) {
        List<ResumeVO> list = new ArrayList<>();

        list.add(new ResumeVO("", "", "1", "2"));
        list.add(new ResumeVO("", "", "1", "2"));
        list.add(new ResumeVO("", "", "1", "2"));
        list.add(new ResumeVO("", "", "1", "2"));
        list.add(new ResumeVO("", "", "1", "2"));
        list.add(new ResumeVO("", "", "1", "2"));
        list.forEach(x -> {
            if (StrUtil.equals("1", x.getAvatar())) {
                x.setAvatar("2");
            }
        });
        System.out.println(list);
    }
}
